package com.xinzhi.mapper;

import com.xinzhi.pojo.Appraisal;
import com.xinzhi.pojo.dto.Dtokoufen;
import com.xinzhi.pojo.dto.Teshujiafen;
import com.xinzhi.pojo.dto.Teshujiafens;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppraisalMapper {
    //特殊加分申请
    List<Teshujiafens> getAppraisalAll();


    //特殊扣分申请新增
    int addKou(@Param("object") String object,@Param("demerit") String demerit,@Param("score") Integer score);

    //特殊扣分申请
    List<Teshujiafen> getKoufenAll();
    //特殊加分申请
    List<Teshujiafens> getAppraisalByObject(String object);
    //特殊扣分申请
    List<Dtokoufen> querystuden(String object);
    //特殊扣分逻辑删除
    int updateappraisal(@Param("demerit") String demerit , @Param("deleted") Integer deleted);

    //特殊扣分申请根据装填进行查询的接口
    List<Dtokoufen> querystuden2(@Param("object") String object,@Param("year") String year);



    //查询考核对象
    Appraisal selectByObject(String object);

    //查询考核对象的年份
    Appraisal selectByyear(String year);


}
